import axios from '@/api/fetch';
// import * as types from './types';
import SERVER from '@/api/server';

// 委托单回访一览统计报表
export const getTrustDeedVisitScan = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/report/repairOrderVisitShow`, {
  params
});

// 查询品牌
export const searchBrand = params => axios.get(`${SERVER.BASEDATA}/vehicleProduct/brandsqueryall`);

// 查询车系
export const searchSeries = brandsid => axios.get(`${SERVER.BASEDATA}/vehicleProduct/brandsdict/${brandsid}/seriessdict`);

// 查询车型
export const searchModel = (brandsid, seriessid) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/brandsdict/${brandsid}/seriessdict/${seriessid}/modelsdict`);

// 查询维修类型
export const findAllRepairType = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedataRepairtypes/findAllRepairType`);

// 导出委托单回访一览统计报表
export const exportTrustDeedVisitScan = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/report/exportTrustDeedVisitScan`, {
  params,
  responseType: 'arraybuffer'
});
